package com.buddy.qreport.query.entity;

import com.buddy.qreport.query.params.QueryParam;
import com.buddy.qreport.query.result.QueryResultColumn;
import lombok.Data;

import java.util.List;

public class QueryEntity {

    /**
     * id
     */
    private String queryId;

    /**
     * 查询名称
     */
    private String queryName;

    /**
     * 查询参数配置
     */
    private List<QueryParam> querParamsConfig;

    /**
     * 查询结果配置
     */
    private List<QueryResultColumn> queryResultConfig;

    /**
     * 使用的数据源id
     */
    private String queryDatasource;

    /**
     * 查询sql
     */
    private String querySql;

    /**
     * 创建时间
     */
    private long queryCreatetime;
    /**
     * 上次执行时间
     */
    private long queryLastexectime;

    /**
     * 查询类型(SQL查询,URL查询)
     */
    private QueryType queryType;

    /**
     * 查询url
     */
    private String queryUrl;

    /**
     * 查询方法(queryType为URL时有效，GET，POST)
     */
    private String queryMethod;

	public String getQueryId() {
		return queryId;
	}

	public void setQueryId(String queryId) {
		this.queryId = queryId;
	}

	public String getQueryName() {
		return queryName;
	}

	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}

	public List<QueryParam> getQuerParamsConfig() {
		return querParamsConfig;
	}

	public void setQuerParamsConfig(List<QueryParam> querParamsConfig) {
		this.querParamsConfig = querParamsConfig;
	}

	public List<QueryResultColumn> getQueryResultConfig() {
		return queryResultConfig;
	}

	public void setQueryResultConfig(List<QueryResultColumn> queryResultConfig) {
		this.queryResultConfig = queryResultConfig;
	}

	public String getQueryDatasource() {
		return queryDatasource;
	}

	public void setQueryDatasource(String queryDatasource) {
		this.queryDatasource = queryDatasource;
	}

	public String getQuerySql() {
		return querySql;
	}

	public void setQuerySql(String querySql) {
		this.querySql = querySql;
	}

	public long getQueryCreatetime() {
		return queryCreatetime;
	}

	public void setQueryCreatetime(long queryCreatetime) {
		this.queryCreatetime = queryCreatetime;
	}

	public long getQueryLastexectime() {
		return queryLastexectime;
	}

	public void setQueryLastexectime(long queryLastexectime) {
		this.queryLastexectime = queryLastexectime;
	}

	public QueryType getQueryType() {
		return queryType;
	}

	public void setQueryType(QueryType queryType) {
		this.queryType = queryType;
	}

	public String getQueryUrl() {
		return queryUrl;
	}

	public void setQueryUrl(String queryUrl) {
		this.queryUrl = queryUrl;
	}

	public String getQueryMethod() {
		return queryMethod;
	}

	public void setQueryMethod(String queryMethod) {
		this.queryMethod = queryMethod;
	}
    
    

}
